-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: multiple tab #8304
base: feat/multiple-tab
Are you sure you want to change the base?
test: multiple tab #8304
Conversation
62ad908
to
cec5994
Compare
a88c2ca
to
f71abc8
Compare
f71abc8
to
2e66788
Compare
a8f3f29
to
d7d87ef
Compare
test('change icon after change request method', async ({ page }) => { | ||
await page.getByLabel('Create in collection').click(); | ||
await page.getByLabel('HTTP Request').click(); | ||
await page.waitForTimeout(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waits are a test smell and should always be avoided at al costs as they do not scale.
They also often also indicated an underlying issue. Its worth getting to the bottom of whats happening to cause your action to to result in an immediate change to the ui you're interested in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be remedied by dealing with the refs, ideally the test would also be scoped into the first PR, so its cool to merge this one in sooner rather than later
await page.getByLabel('Request collection', { exact: true }).click(); | ||
await page.getByPlaceholder('My Collection').fill('Test add tab collection'); | ||
await page.getByRole('button', { name: 'Create', exact: true }).click(); | ||
await page.waitForTimeout(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
smoke test for #8151 feature.